$(document).ready(function () {
   $("#tianwen").click(function () {
       if(user!=undefined) {
           window.location.href="http://qu.bmxly.pro/codewars/jwh/app.html?username="+user.name+"&password="+user.password;

           // $.ajax({
           //     type: "POST",
           //     url: "http://qu.bmxly.pro/codewars/login",
           //     dataType: "json",
           //     data: {name: user.name, password: user.password1},
           //     success: function (data) {
           //         window.location.href="http://qu.bmxly.pro/codewars/jwh/app.html";
           //     },
           //     error:function(){
           //         window.location.href="http://qu.bmxly.pro/codewars/jwh/app.html";
           //     }
           // })
       }
   })
})

